package com.homework.factory;

import com.homework.service.UserService;
import com.homework.service.impl.UserServiceImpl;

public class ServiceFactory {
    private static UserService userService;

    private ServiceFactory() {
    }

    public static UserService getUserService() {
        if (userService==null){
            return new UserServiceImpl();
        }
        return userService;
    }
}
